﻿using System.Windows;
using System.Windows.Controls;

namespace NxChatQQ.Views.Layouts
{
    /// <summary>
    /// FriendListLayout.xaml 的交互逻辑
    /// </summary>
    public partial class FriendListLayout : UserControl
    {
        public FriendListLayout()
        {
            InitializeComponent();
        }

        private void TabControl_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            foreach (TabItem item in tabControl.Items)
            {
                var itemWidth = (e.NewSize.Width - 8) / 2;
                item.Width = itemWidth;
            }
        }
    }
}
